package com.prabhakar.taxiclubapp;

/*
 * various CONSTANTS used TAXICLUB.In App.. are defined in this class..
 */	

public class Constants {

	/*
	 * This METHOD append requisite data to the DropDowns Value Selected @AIRPORT TAB
	 */
	public static String getAirportAddress(String loc){
		String completeLocation = "";
		if(loc.contains("Airport")){
			completeLocation = "Indira Gandhi International Airport , "+loc+" , New Delhi";
		}else if(loc.equalsIgnoreCase("New Delhi Rly Stn")){
			completeLocation = "New Delhi Railway Station, New Delhi";
		}else if(loc.equalsIgnoreCase("Nizamuddin Rly Stn")){
			completeLocation = "Nizamuddin Railway Station, New Delhi";
		}else if(loc.equalsIgnoreCase("Old Delhi Rly Stn")){
			completeLocation = "Old Delhi Railway Station, New Delhi";
		}else if(loc.equalsIgnoreCase("Sarai Rohilla Rly Stn")){
			completeLocation = "Sarai Rohilla Railway Station, New Delhi";
		}else if(loc.equalsIgnoreCase("Anand Vihar Rly Stn")){
			completeLocation = "Anand Vihar railway station ,New Delhi.";
		}else if(loc.equalsIgnoreCase("Ghaziabad Rly Stn")){
			completeLocation = "Ghaziabad, Railway Colony, Madhopura, Uttar Pradesh";
		}else if(loc.equalsIgnoreCase("Delhi-Cantt Rly Stn")){
			completeLocation = "Delhi cantonment Railway Station, New Delhi";
		}else if(loc.equalsIgnoreCase("Gurgaon Rly Stn")){
			completeLocation = "Gurgaon Railway Station, Sector 105, Gurgaon";
		}
		return completeLocation;
	}
	
	/*
	 * This METHOD append requisite data to the timeInMins to display RouteTime In StringFormat
	 */
	public static String getRouteTimeInStringFormat(int timeInMins){
		String tempStr ="";
		if(timeInMins>60){
			tempStr = tempStr +(timeInMins/60)+"Hrs"+(timeInMins%60)+"Mins";
		}else{
			tempStr = tempStr+(timeInMins+"Mins");
		}
		return tempStr;
	}
	
	
	public String LOCALHOST_RestURL = "http://10.0.2.2:8080/RestProject/rest/hello/";
	
	
	// Booking Type ..
	public static final String MODE_OF_BOOKING =" Android"; 	
	public static final String BOOKING_TYPE_P2P = "point-to-point";
	public static final String BOOKING_TYPE_AIRPORT = "airport-railway";
	public static final String BOOKING_TYPE_OUTSTATION = "outstation";
	public static final String BOOKING_TYPE_HOURLY_4HRS = "hourly-package 4 hrs";
	public static final String BOOKING_TYPE_HOURLY_6HRS = "hourly-package 6 hrs";
	public static final String BOOKING_TYPE_HOURLY_8HRS = "hourly-package 8 hrs";
	public static final String BOOKING_TYPE_HOURLY_10HRS = "hourly-package 10 hrs";
	public static final String BOOKING_TYPE_HOURLY_12HRS = "hourly-package 12 hrs";
	
	//CarType..
	public static final String TAXI_SELECTED_ECONOMY = "Economy";
	public static final String TAXI_SELECTED_SEDAN = "Sedan";
	public static final String TAXI_SELECTED_SUV = "Suv";
	
	// Various TAG'S in JSON Response
	public static final String TAG_SUCCESS = "success";
	public static final String TAG_MESSAGE = "message";
	
	// REST URL to Hit for Taxi-Booking 
	public static final String TC_RestURL_Booking = "http://www.taxiclub.in/PHPSCRIPT/insert_booking.php";
	public static final String TC_RESTURL_CUSTOMER_REGISTRATION = "http://www.taxiclub.in/PHPSCRIPT/user_registration.php";
	public static final String REST_DUPLICATE_CUSTOMER_REGISTRATION_RESPONSE ="user already registered with this mobile number";
	public static final String TC_FareURL = "http://www.taxiclub.in/PHPSCRIPT/pricing.php";
	public static final String PRICING_Param_NAME = "pricing_tab";
	public static final String PricingTabValue_P2P = "p2p";
	
	/*
	 * Success Messages
	 */
	public static final String BOOKING_SUCCESSFULL =" Congratulations ,Your Taxi Booked successfully.";
	
	
	/*
	 * Error-Messages
	 */	
	public static final String NAME_REQUIRED ="Name is Required";
	public static final String PHONENUMBER_REQUIRED = "PhoneNumber is Required";
	public static final String VALID_PHONENUMBER_REQUIRED ="PhoneNumber must be of 10 digits";
	public static final String INVALID_PICKUP_LOCATION_MESSAGE = "....";
	public static final String INVALID_DROP_LOCATION_MESSAGE = "..........";
	public static final String EMAIL_REQUIRED = "EmailAddress Required ";
	public static final String VALID_EMAIL_REQUIRED ="Valid EmailAddress Required ";
	public static final String PASSWORD_REQUIRED = "Password Required ";
	public static final String CONFIRMATION_PASSWORD_REQUIRED = "Confirm Password Required ";
	public static final String PASSWORDS_DO_NOT_MATCH = "Passwords Do Not Match ";

	public static final String ImProperLocations_For_GMap ="Please goto Previous Page & Do Make Sure you selected a Proper PickUp & Drop Location";
	public static final String ERROR_MESSAGE_TryAgain ="There seems to some Network Issue. Please try again..!!!";

	/*
	 * CONNECTIVITY_Related ERROR-Messages
	 */	
	public static final String INTERNET_DISABLED_TITLE = "INTERNET DISABLED";
	public static final String INTERNET_DISABLED_MESSAGE = "Internet is  disabled.Please Turn On the Internet to proceed Further";
	public static final String GPS_DISABLED_TITLE = "GPS DISABLED";
	public static final String GPS_DISABLED_MESSAGE = "GPS is not enabled.Please Turn On the GPS to proceed Further";
	
	
	/*
	 * Keys used in Json Object thruout the application
	 */
	public static final String NAME ="name";
	public static final String PHONENUMBER ="phoneNumber";
	public static final String EMAIL ="email";
	public static final String DROP_LOCATION ="dropLocation";
	public static final String PICKUP_LOCATION ="pickUpLocation";
	public static final String PICKUP_DATE ="pickUpDate";
	public static final String PICKUP_TIME ="pickupTime";
	public static final String NO_OF_PASSENGERS ="noOfPassengers";
	public static final String CARTYPE ="carType";
	
	// Keys used for Parsing FARE-DETAILS....
	public static final String Data ="data";	
	public static final String RatePerKm ="ratePerKm";
	public static final String Time ="time";
	public static final String BaseFare ="baseFare";
	public static final String ECONOMY ="ECONOMY";
	public static final String SEDAN ="SEDAN";
	public static final String NIGHT ="NIGHT";
	public static final String DAY ="DAY";
	    
}

















